package com.xayy.health.mgt.model;

import cn.kawins.mybatis.base.BaseModel;
import cn.kawins.mybatis.util.SnowflakeId;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 故障等级评分配置管理
 * @author plq
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "HEALTH.tb_fault_score_config")
public class FaultScoreConfig extends BaseModel<Long> {

    @Id
    @Column(name = "id")
    @KeySql(genId = SnowflakeId.class)
    private Long id;

    @Column(name = "frequent_name")
    @ApiModelProperty(value = "频度名称")
    private String frequentName;

    @Column(name = "frequent_key")
    @ApiModelProperty(value = "频度标识")
    private String frequentKey;

    @Column(name = "level_name")
    @ApiModelProperty(value = "程度名称")
    private String levelName;

    @Column(name = "level_key")
    @ApiModelProperty(value = "程度标识")
    private String levelKey;

    @Column(name = "score")
    @ApiModelProperty(value = "分值")
    private Integer score;

    @Override
    public Long idValue() {
        return null;
    }
}
